home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / lib / partman / update.d / 58default_visuals < prev    next >
Text File  |  2008-10-29  |  643b  |  36 lines

  1. #!/bin/sh
  2.  
  3. . /usr/share/debconf/confmodule
  4.  
  5. dev=$1
  6. num=$2
  7. id=$3
  8. size=$4
  9. type=$5
  10. fs=$6
  11. path=$7
  12. name=$8
  13.  
  14. cd $dev
  15.  
  16. if [ "$fs" != free ]; then
  17.     if [ -f $id/detected_filesystem ] && [ ! -f $id/method ]; then
  18.         filesystem=$(cat $id/detected_filesystem)
  19.     else
  20.         filesystem=''
  21.     fi
  22.     RET=''
  23.     if [ "$filesystem" ]; then
  24.         db_metaget partman/filesystem_short/$filesystem description || RET=''
  25.     fi
  26.     RET="${RET:-$filesystem}"
  27. elif [ "$type" = unusable ]; then
  28.     db_metaget partman/text/unusable description
  29. else
  30.     db_metaget partman/text/free_space description
  31. fi
  32.  
  33. printf "$RET" >$id/visual_filesystem #TODO: language dependent length
  34.  
  35. >$id/visual_mountpoint
  36.